<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<jsp:include page="checkAdmin.jsp" />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
 <link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-2.0.js"></script>

<script type="text/javascript">
$(document).ready(function(){
 
  var url = "#";
  $(".click").click(function(){
  		$(".tip").fadeIn(200);
  		url = this.href;
  		return false;
  });
  
  $(".tiptop a").click(function(){
 		 $(".tip").fadeOut(200);
	});

  $(".sure").click(function(){
  		$(".tip").fadeOut(100);
  		location.href = url;
	});

  $(".cancel").click(function(){
 		$(".tip").fadeOut(100);
	});

});
</script>
</head>
<body>
	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="index.jsp">首页</a></li>
    <li><a href="#">分组管理</a></li>
    <li><a href="#">分组列表</a></li>
    </ul>
    </div>
    
    <div class="rightinfo">
    
    <div class="tools">
    
    	<ul class="toolbar">
        <a href="group-save.jsp"><li><span><img src="images/t01.png" /></span>添加分组</li></a>
        </ul>
        
    </div>
    
    
    <table class="tablelist">

    	<thead>
    	<tr>
        <th>编号<i class="sort"><img src="images/px.gif" /></i></th>
        <th>分组名称</th>
        <th>所属用户</th>
        <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <s:if test="#request.GroupList!=null">
        <s:iterator value="#request.GroupList" status="list">
        <tr>
		        <td><s:property value="id"/></td>
		        <td><s:property value="gname"/></td>
		        <td><s:property value="admin"/></td>
		        <td>
		        <a href="student-list.action?gid=<s:property value="id"/>" class="tablelink" title="查看当前分组的全部用户"> [ 查看 ] </a>     
		        <a href="student-editGroup.action?gid=<s:property value="id"/>" class="tablelink" title="修改分组信息信息"> [ 修改 ] </a>     
		        <a href="student-deleteGroup.action?gid=<s:property value="id"/>" class="tablelink click"> [ 删除  ] </a></td>
        </tr> 
        </s:iterator>
        </s:if>
        <s:else>
        	<tr>
        		<td colspan="7">暂无本类数据...</td>
        	</tr>
        </s:else>
           
        </tbody>
    </table>
    
    <!-- 分页 -->
   <div class="pagin">
    	<div class="message">
    		${pageInfo }
    	</div>
        ${pageList }
    </div>
    
    
    <div class="tip">
    	<div class="tiptop"><span>提示信息</span><a></a></div>
        
      <div class="tipinfo">
        <span><img src="images/ticon.png" /></span>
        <div class="tipright">
        <p>是否确认对信息的修改 ？</p>
        <cite>如果是请点击确定按钮 ，否则请点取消。</cite>
        </div>
        </div>
        
        <div class="tipbtn">
        <input name="" type="button"  class="sure" value="确定" />&nbsp;
        <input name="" type="button"  class="cancel" value="取消" />
        </div>
    
    </div>
    
    
    
    
    </div>
    
    <script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
	</script>

</body>
</html>
